|
Ubicación en el Menú |
---|
TechDraw → Insertar Vista |
Entornos de trabajo |
TechDraw |
Atajo de teclado por defecto |
Ninguno |
Introducido en versión |
- |
Ver también |
TechDraw Insertar Grupo de Proyección, TechDraw Insertar vista de sección |
La herramienta Vista añade una representación de uno o más objetos a una página de Dibujo. Este es el elemento básico del módulo TechDraw. La mayoría de las otras Vistas se derivan de alguna manera de NuevoVista.
In version 0.21 and below the tool can only create a Part View, which is very similar to a Projection Group Item.
Vista de una caja sólida con líneas ocultas
Page
, Automatic
or Custom
. If the last option is selected: enter the scale numerator and denominator.Part View task panel
See also: Property editor.
A Part View, formally a TechDraw::DrawViewPart
object, has the following properties:
Base
Distance
): The view's horizontal position on the page. (1)Distance
): The view's vertical position on the page. (1)Bool
): Prevents Views from being dragged in the Gui when true
. The View can still be moved by changing X,Y properties. (1)Angle
): Counterclockwise rotation of the View on the page in degrees. (1)Enumeration
): The scale type. Options: (1)
Page
: Use the Page's scale setting.Automatic
: Fit the view to the page.Custom
: Use the scale defined by DatosScale.FloatConstant
): The view will be rendered on the page in Scale:1 ratio to the Source. (1)String
): Optional short text caption. (1)Cosmetics
TechDraw::PropertyCosmeticVertexList
)TechDraw::PropertyCosmeticEdgeList
)TechDraw::PropertyCenterLineList
)TechDraw::PropertyGeomFormatList
)HLR Parameters
Bool
): If true
, TechDraw will use a polygon approximation to calculate drawing geometry. If false
, TechDraw will use a precision algorithm. CoarseView can be much faster for complex models. The quality of the drawing is reduced, since every curve is approximated as a series of short line segments. Vertices are not displayed in CoarseView since each short segment would result in two new Vertices and the display becomes cluttered. Linear Dimensions can be added to a CoarseView, but are unlikely to be useful.Bool
): Visible Smooth lines on/off.Bool
): Visible Seam lines on/off.Bool
): Visible Isometric(u,v) lines on/off.Bool
): Hidden lines on/off.Bool
): Hidden Smooth lines on/off.Bool
): Hidden Seam lines on/off.Bool
): Hidden Isometric(u,v) lines on/off.Integer
): Number of Isometric(u,v) lines to draw on each face.Integer
): The number of times FreeCAD should try to clean the HLR result. introduced in version 0.21Projection
LinkList
): Links to the drawable objects to be depicted.XLinkList
): Links to the drawable objects in an external file.Vector
): This vector controls the direction from which you are viewing the object. +X is right, -X is left, +Y is rear, -Y is front (looking into the screen), +Z is up and -Z is down. So a Front view is (0,-1,0) and an isometric view is (1,-1,1).Vector
): This vector controls the rotation of the view around the Direction.Bool
): true
for perspective projection, false
for orthogonal projection.Distance
): Distance from camera to projection plane for perspective projections. Needs to be adjusted to fit the object. Too far and the perspective is lost, too close and the object is distorted.Base
Bool
): Always show view label if true
. (1)Integer
): Over or under lap relative to other views. (1) introduced in version 0.21Broken View
Enumeration
): Set break line style if applicable. introduced in version 1.0Enumeration
): Adjusts the type of break line depiction on broken views if applicable: None
, ZigZag
or Simple
. introduced in version 1.0Decoration
Bool
): Circular arc center marks on/off.Float
): Circular arc center mark size adjustment, if enabled.Bool
): Show a horizontal centerline through the view.Bool
): Temporarily show invisible lines.Bool
): Show a vertical centerline through the view.Faces
Color
): Set color of faces. introduced in version 1.0Percent
): Set transparency of faces. introduced in version 1.0Highlight
Float
): Adjust the rotation of the Detail highlight if applicable.Color
): Set the highlight line color if applicable.Enumeration
): Set the highlight line style if applicable.Lines
Length
): Not implemented yet.Length
): The thickness of hidden lines, if enabled.Length
): The thickness of isometric(u,v) surface lines and Dimension lines.Length
): The thickness of visible lines. See Line Groups.Section Line
Bool
): Show/hide section cut line if applicable. introduced in version 1.0Color
): Set the section line color if applicable.Bool
): Show/hide marks at direction changes for Complex Section if applicable. introduced in version 0.21Enumeration
): Set the section line style if applicable.Bool
): Show/hide the section line if applicable.(1) these properties are common to all View types.
See also: Property editor.
A Projection Group Item, formally a TechDraw::DrawProjGroupItem
object, is derived from a Part View, formally a TechDraw::DrawViewPart
object, and inherits all its properties. It also has the following additional properties:
Base
Enumeration
): The view type (Front
, Left
, etc.).Vector
): Deprecated use DatosXDirection instead.See TechDraw ArchView.
See TechDraw Symbol.
See TechDraw Image.
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
A Part View can be created with macros and from the Python console by using the following functions:
import FreeCAD as App
doc = App.ActiveDocument
box = doc.addObject("Part::Box", "Box")
page = doc.addObject("TechDraw::DrawPage", "Page")
template = doc.addObject("TechDraw::DrawSVGTemplate", "Template")
template.Template = App.getResourceDir() + "Mod/TechDraw/Templates/A4_LandscapeTD.svg"
page.Template = template
# Toggle the visibility of the page to ensure its width and height are updated (hack):
page.Visibility = False
page.Visibility = True
view = doc.addObject("TechDraw::DrawViewPart", "View")
page.addView(view)
view.Source = [box]
view.Direction = (0, 0, 1)
view.X = page.PageWidth / 2
view.Y = page.PageHeight / 2
doc.recompute()